package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 动态文章管理对象 dynamic
 * 
 * @author ruoyi
 * @date 2023-08-12
 */
public class Dynamic extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 文章ID */
    private Long dynamicId;

    /** 标题 */
    @Excel(name = "标题")
    private String dynamicTitle;

    /** 内容 */
    @Excel(name = "内容")
    private String dynamicContent;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date dynamicDate;

    /** 发布者 */
    @Excel(name = "发布者")
    private String pulisher;

    public void setDynamicId(Long dynamicId) 
    {
        this.dynamicId = dynamicId;
    }

    public Long getDynamicId() 
    {
        return dynamicId;
    }
    public void setDynamicTitle(String dynamicTitle) 
    {
        this.dynamicTitle = dynamicTitle;
    }

    public String getDynamicTitle() 
    {
        return dynamicTitle;
    }
    public void setDynamicContent(String dynamicContent) 
    {
        this.dynamicContent = dynamicContent;
    }

    public String getDynamicContent() 
    {
        return dynamicContent;
    }
    public void setDynamicDate(Date dynamicDate) 
    {
        this.dynamicDate = dynamicDate;
    }

    public Date getDynamicDate() 
    {
        return dynamicDate;
    }
    public void setPulisher(String pulisher) 
    {
        this.pulisher = pulisher;
    }

    public String getPulisher() 
    {
        return pulisher;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("dynamicId", getDynamicId())
            .append("dynamicTitle", getDynamicTitle())
            .append("dynamicContent", getDynamicContent())
            .append("dynamicDate", getDynamicDate())
            .append("pulisher", getPulisher())
            .toString();
    }
}
